<% form_remote_tag(:url => {:controller => 'auth', :action => params[:act]}, :loading => "TrackSuite.ajax.loadding('role_submit','ajax20.gif');") do %>
<%= hidden_field_tag "act", params[:act] %>  
<%= hidden_field_tag "capabilite_ids", '' %>
<%= hidden_field "role", "id" %>
<%= error_messages_for "role" %>

<table border="1">
  <thead>
    <tr><td>Inclusão e alteração de regras para acesso aos módulos.</td></tr>
  </thead>
  <tbody>
    <tr><td>Nome:</td></tr>
    <tr><td><%= text_field "role", "name" %></td></tr>
    <tr><td><h3>Capacidades associadas a regra.</h3></td></tr>
    <tr><td><ul id="capabilites"></ul></td></tr>
    <tr><td><h3>Capacidades para associação a regra.</h3></td></tr>
    <tr>
        <td>
            <div id="role_capabilite_list">
              <%=render :partial => "role_capabilite_list" %>
            </div>
        </td>
    </tr>
</tbody>
<tfoot>
    <tr>
        <td colspan="2" align="right">
            <span id="role_submit"><%= image_submit_tag "/images/icons/ok.png" %></span> 
            <%= link_to_function(image_tag("/images/icons/cancel.png", :border => "0"), "TrackSuite.util.element.hide('role_form')") %>
        </td>
    </tr>
</tfoot>
</table>

<% end %>
